﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeaBattle.Domain.Concrete.Services;
using SeaBattle.Domain.Abstract.Services;

namespace SeaBattle.Domain.RepositoryFactory
{
    public class PlayerFactory
    {
        private static IPlayerService playerService;

        public static IPlayerService CreatePlayerService()
        {
            if (playerService == null)
            {
                playerService = new FakePlayerService();
            }
            return playerService;
        }
    }
}
